package com.oyjd.business.listview.activity;

import android.app.Activity;
import android.os.Bundle;

import com.oyjd.R;
import com.oyjd.framework.ui.title.TitleBar;
import com.oyjd.framework.ui.webview.WebViewEx;

/**
 * 显示统计明细
 * 
 * @author 欧建东
 * @email oyjd@163.com
 * 
 */
public class ShowCountActivity extends Activity {	
	private TitleBar titleBar;// 标题
	private WebViewEx webView;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.act_webview);

		// 接收参数
		Bundle bundle = this.getIntent().getExtras();
		String fileName = bundle.getString("fileName");
		String msg = bundle.getString("msg");

		// 组件初始化
		titleBar = (TitleBar) this.findViewById(R.id.titleBar);
		titleBar.setBackVisiable(true);
		titleBar.setTitleText(fileName);

		webView = (WebViewEx) this.findViewById(R.id.webView);		
		webView.getSettings().setDefaultTextEncodingName("UTF-8") ;
		webView.loadDataWithBaseURL("", msg, "text/html", "UTF-8","");
	}

}
